/* strstr 使用示例 */
#include <stdio.h>
#include <stdlib.h>
#include <string.h>

int main(void)
{
	char *ptr = NULL;
	char str[] = "I love my home";

	ptr = strstr(str, "home");
	if (NULL != ptr) {
		printf("String: %s\n", *ptr);
		printf("Offset: %ld\n", ptr - str);
	}

	exit(0);
}
